<div class="panel panel-noborder panelcolor">
		<ul class="nav nav-tabs">
			<li ng-class="{'active': selectedTab==1}"><a ng-class="{'active2': selectedTab==1}"
				ng-click="selectTab('1')">团队人员</a></li>
			<li ng-class="{'active': selectedTab==2}"><a ng-class="{'active2': selectedTab==2}"
				ng-click="selectTab('2'); ">角色权限</a></li>
		</ul>
	</div>
	
<div class="panel panel-default panel-noborder">

	<div class="panel-body" ng-show="type=='show'">
		<!--<table class="table table-bordered table-hover">
			<tbody>
				<tr>
					<th width="8%" style="font-size: 12px">权限/角色</th>
					<td ng-repeat="dt in dtmList" width="4%" style="font-size: 12px">{{dt.roleName
						| developRoleNameFilter}}</td>
				</tr>
				<tr ng-repeat="permission in  permissionList">
					<td style="font-size: 12px">{{permission.itemName}}</td>
					<td ng-repeat="dt in dtmList"><span
						ng-if="sysRolePermissionMap[dt.roleName].indexOf(permission.itemCode) > -1 ">√</span>
					</td>
				</tr>
			</tbody>
		</table>-->
		<div class="panel-body width300">
			<select ng-model="roleName" >
				<option value="{{item.roleName}}" ng-selected="role == item.roleName" ng-repeat="item in dtmList">{{item.roleName| developRoleNameFilter}}</option>
			</select>
		</div>
		<div class="panel-body">
			<sn-tree tree-data="areaData" is-disabled="isDisabled" tree-tpl="checkboxTreeTpl"></sn-tree>
		</div>
		<div class="form-group pull-right">
			<button type="submit" class="btn btn-default"
				ng-click="editSysRolePermission();">修改权限</button>
		</div>
	</div>
	<div class="panel-body" ng-show="type=='edit'">
		<!--<table class="table table-bordered table-hover">
			<tbody>
				<tr>
					<th width="8%" style="font-size: 12px">角色/权限</th>
					<td ng-repeat="dt in dtmList" width="4%" style="font-size: 12px">{{dt.roleName
						| developRoleNameFilter}}</td>
				</tr>
				<tr ng-repeat="permission in  permissionList">
					<td style="font-size: 12px">{{permission.itemName}}</td>
					<td ng-repeat="model in fieldModel">
						<input type="checkbox" ng-model="model.permission[$parent.$index].hasPermission"  ng-disabled="model.rolename == '045'">
					</td>
				</tr>
			</tbody>
		</table>-->
		<div class="panel-body width300">
			<select class="form-control" ng-model="roleName">
				<option value="{{item.roleName}}" ng-selected="role == item.roleName" ng-repeat="item in dtmList">{{item.roleName| developRoleNameFilter}}</option>
			</select>
		</div>
		<div class="panel-body">
			<sn-tree tree-data="areaData" is-disabled="isDisabled" tree-tpl="checkboxTreeTpl"></sn-tree>
		</div>
		<div class="form-group pull-right">
			<button type="submit" class="btn btn-default"
				ng-click="updateSysRolePermission();">确 定</button>
				<button type="submit" class="btn btn-default"
				ng-click="exitEdit();">取 消</button>
		</div>

	</div>

</div>
